package com.db.ionio.serialization;

import java.io.InputStream;
import java.io.OutputStream;

/**
 * @author Alexander Kotov (kotov.alex.22@gmail.com)
 */
public interface Serializer<T> {
    void serialize(T obj, OutputStream outStream) throws Exception;

    T deserialize(InputStream inStream) throws Exception;

    String getType();
}
